<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>新建标签组</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<style type="text/css">
		.importExcel_main_contaienr{
			width: 485px;
			margin: 0 auto;
			padding: 32px 32px 32px 0;
			background: #fff;
		}
		.importExcel_title{
			font-size: 17px;
			width: 100%;
			text-align: center;
			margin-top: 2px;
			font-weight: 600;
			line-height: 24px;
			letter-spacing: 1px;
			padding-left: 20px;
		}

		.importExcel_from_contaienr{
			margin-top: 24px;
		}
		.importExcel_button_container{
			display: flex;
			justify-content: space-between;
			padding-top: 10px;
			align-items: center;
		}
		.importExcel_button_container span{
			color: #777;
			font-size: 14px;
			cursor: pointer;
			margin-left: 32px;
		}
		.importExcel_button_content{
			display: flex;
			justify-content: flex-end;
			flex: 1;
			align-items: center;
		}
		.lable_list_container{
			position: relative;
		}
		.lable_list_container svg{
			width: 14px;
			height: 14px;
			position: absolute;
			right: -20px;
			top: 13px;
			cursor: pointer;
		}
		.add_lable_container{
			cursor: pointer;
			color: #1890ff;
			font-size: 14px;
		}
	</style>
</head>
<body>
	<form class="layui-form" action="" id="form1">
		<div class="importExcel_main_contaienr">
			 <h2 class="importExcel_title">编辑标签组</h2>
			 <div class="importExcel_from_contaienr">
			 	<div class="layui-form-item">
			 	  <label class="layui-form-label">标签组名称</label>
			 	  <div class="layui-input-block">
			 	        <input type="text" id="title" required  lay-verify="required" placeholder="请输入标签组名称" autocomplete="off" class="layui-input"value="{$group_name}">
			 	  </div>
			 	</div>
			 </div>
			 <div class="layui-form-item importExcel_button_container">
			 	<div class="importExcel_button_content">
			 		<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" onclick="sub()">确定</button>
			 	</div>
			 </div>
		</div>	
	</form>
<script src="/layui/layui.js"></script>
<script src="/cdn/jquery.js"></script>
<script src="/js/ajax.js"></script>
	<script type="text/javascript">
		function sub(){
			var title = $('#title').val();
			myAjaxPost(false, true, '', { title:title}, function (resp) {
				if (resp.status == 'success') {
					tusi(resp.msg);
					setTimeout(function(){ 
						parent.layer.closeAll('iframe');
						parent.location.reload(); 
					},2000);
				}else{
					alert(resp.msg);
				}
			})
		}
	</script>
</body>
</html>